You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > Matrix Structure > Matrix Methods > Matrix.SaveToFile Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
Matrix.SaveToFile Method

Write object header and values to a file.

Syntax
C#
Visual Basic
public void SaveToFile([In] string FileName, bool Append);

Write the header describing the calling object and the values array of the calling object to the file, specified by the FileName. If the file already exist, the data is overwritten by default. If Append is True, the data is appended to the end of the file. The data is always saved with default precision. (single or double). 

Note It is recommended you use a *.mtx extension when you're saving/loading matrix to/from file. Similarly, you should use a *.Vec extension when you're saving/loading vector to/from file.

var Mtx: Matrix; begin Mtx.SetIt(2,2,False,[3,1,-1,5]); Mtx.SaveToFile('c:test.mtx'); // Write info and header for Mtx to file end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!